// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   z1.java

package com.zelix;

import java.io.BufferedReader;
import java.io.IOException;
import javax.swing.*;
import javax.swing.text.JTextComponent;

// Referenced classes of package com.zelix:
//            w1, g2, j0

public abstract class z1 extends w1 {

    static final String c;
    protected JLabel d;
    protected JTextArea e;
    protected BufferedReader f;
    protected j0 g;

    public z1(JFrame jframe, String s, String s1, BufferedReader bufferedreader, boolean flag, boolean flag1, boolean flag2) {
        super(jframe, s, flag1);
        String s2;
        StringBuffer stringbuffer;
        int i;
        e();
        d.setText(s1);
        f = bufferedreader;
        s2 = null;
        stringbuffer = new StringBuffer();
        e.setEditable(flag);
        i = 0;

        try {
            if (bufferedreader != null) {
                do {
                    s2 = bufferedreader.readLine();
                    if (s2 == null)
                        break;
                    i += s2.length();
                    stringbuffer.append(s2 + w1.a);

                } while (s2 != null && i < 0x7d000);
            }
        } catch (IOException e1) {
            e1.printStackTrace();
        } finally {
            if (bufferedreader != null) {
                try {
                    bufferedreader.close();
                } catch (IOException e1) {
                    e1.printStackTrace();
                }
            }
        }
        if (s2 != null)
            stringbuffer.append(c);
        e.setText(stringbuffer.toString());
        e.setCaretPosition(0);
        return;
    }

    protected abstract void e();

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x15;
                    break;
                case 1:
                    key = 124;
                    break;
                case 2:
                    key = 77;
                    break;
                case 3:
                    key = 105;
                    break;
                default:
                    key = 68;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static {
        c = w1.a + w1.a + z("Z\022!\020da\024(I\"|\016>\035d".toCharArray()) + 0x7d000 + z("5\0364\035!f\\>\001+b\022".toCharArray());
    }
}
